﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UI.Core
{
    public enum OpreateType
    {
        Add,
        Edit,
        Remove,
    }

    public class EditRecord
    {
        protected EditRecord()
        {
        }

        public EditRecord(OpreateType Opreate, object EditObject, string PropertyName, object OldValue)
        {
            this.Opreate = Opreate;
            this.EditObject = EditObject;
            this.PropertyName = PropertyName;

            this.OldValue = OldValue;
        }

        /// <summary>
        /// 操作类型
        /// </summary>
        public OpreateType Opreate { get; set; }
        /// <summary>
        /// 操作对象
        /// </summary>
        public dynamic EditObject { get; set; }

        /// <summary>
        /// 编辑的属性
        /// </summary>
        public string PropertyName { get; set; }
        /// <summary>
        /// 编辑前的值
        /// </summary>
        public object OldValue { get; set; }


    }
}
